Brief description of the commands:

note that:
x,y coodinates   (0,0) upper left corner of screen




PUTMAP (put bitmap at x,y)
int putmap(int id,int x,int y)
          id bitmap id (1-198) 
          x (horizonal coordinate)
          y (vertical coordinate) 

PUTMAPT (put bitmap at x,y but skip black pixels for transparency)
int putmap_t(int id,int x,int y)
id=bitmap id (1-198) 
          x (horizonal coordinate)
          y (vertical coordinate) 


CLRSCRN (clear the lcd)
void clear_lcd()

WHTSCR (set lcd screen to white)
void white_lcd()

MKMETER (define  a meter) 
void make_meter(int mindex,int x,int y, int cols,uint8_t color1,uint8_t color2,int prcntalpha) 
          mindex (meter index 0 to 8)
          x (horizonal coordinate)
          y (vertical coordinate) 
          cols (number of columns in the meter)
          color1 (first 8 bits of the 12 bit color)
          color2 (last 4 bits of color stuffed in high 4bits)
          prcntalpha (%alpha 0-100 with 0 being invisible and 100 being solid)

SM (show a meter on the screen)
void show_meter(int mindex,char *value)
           mindex (meter index 0 to 8 previously define by a mkmeter)
           value (the value you want to display on the meter)

ERMETER (erase meter)
void erase_meter(int mindex)
         mindex (meter index 0 to 8 previously define by a mkmeter)


ERASEMAP (erase a bitmap with zeros)
int erasemap(int id,int x,int y)            
          id bitmap id (1-198) 
          x (horizonal coordinate)
          y (vertical coordinate) 
 

BGRNDMAP (load a background picture in jbp format)
void background_pic(int width, int height)        
          width in pixels
          height in pixels

GETMAP (get a bitmap from video memory)
int getmap(int id,int x,int y,int width,int height)
          id bitmap id (1-198) (user specified)
          x (horizonal coordinate)upper left corner
          y (vertical coordinate) 
          y (vertical coordinate) 
          width (horizonal width in pixels)
          height (vertical height in pixels) 
 
 
MKBARG (define a bargraph)          
void make_bargraph (int barindex,int bbmapindex,int x,int y,int bspacing,int bnumbars,int prcntalpha)
          barindex id (0-7) user specified
          bbmapindex  bitmap id for a single bar
          x (horizonal coordinate)
          y (vertical coordinate) 
          bspacing number of pixels betweeb adjacent bars
          bnumbars total number of bars
          prcntalpha (%alpha 0-100 with 0 being invisible and 100 being solid)

SB (show a bargraph)
void show_bargraph (int barindex,int bnumbars) 
         barindex id of bargraph to show
         bnumbars to show

MKGRID (define a grid)
void make_grid(int gindex,int x,int y, int xlen,int ylen,int xinc,int yinc, uint8_t color1, uint8_t color2,  uint8_t datacolor1,  uint8_t datacolor2, int prcntalpha)
          gindex (0-1) grid index
          x (horizonal coordinate) upper left
          y (vertical coordinate) 
          xlen (horizonal width in pixels)
          ylen (vertical height in pixels) 
          width (horizonal width in pixels)
          height (vertical height in pixels) 
          color1 (first 8 bits of the 12 bit color of grid)
          color2 (last 4 bits of color stuffed in high 4bits of grid)       
          datacolor1 (first 8 bits of the 12 bit color of data)
          datacolor2 (last 4 bits of color stuffed in high 4bits of data)       
          prcntalpha (%alpha 0-100 with 0 being invisible and 100 being solid of sheet)

SG (show a grid and advance to next location)     
void show_grid (int gindex,int datapt) 
           gindex (0-1) grid index
           datapt unscaled data point

EG (erase a grid)
void erase_grid (int gindex) 
           gindex (0-1) grid index

CONTRAST (set display contrast)
void set_lcd_contrast(uint32_t contrast) 
           contrast  0 is full, 0xa00 is low ( 0 to 2560)

BRIGHTNESS (set display brightness)
void set_lcd_brightness(uint32_t brightness)
           brightness 0 is dark, 0xa00 is really bright ( 0 to 2560)      

RESET (delete memory structs)

DUMPMAP (dump to the serial port a bitmap)
void dump_bmap(int id)
            id bitmap id


